import  AutoTest from '../service/PuppeteerImp';
import {project_config} from '../api/Config' 
import PuppeteerImp from '../service/PuppeteerImp';
class App{
    //1、初始化项目基本信息
    app = new PuppeteerImp('测试项目名称','测试人');

    async start(){
        
       //2、初始化浏览器
        await this.app.init();

        //3、调用方法
        await this.search('hello');
    }

    /**
     * 百度搜索示例
     * @param value 
     */
    async search(value:string){
        await this.app.inputValue('#kw',value,'输入搜索值');
        await this.app.tapThenShot('#su','点击百度一下');
        //TODO:返回值处理
    }
}
new App().start();

